//
// Created by zx208 on 2024/10/30.
//

#include "../../define.h"
#include <stdio.h>
#include <stdlib.h>

#ifndef _LINKEDSTACK_H
#define _LINKEDSTACK_H

typedef int ElemType;

// 链栈
typedef struct StackNode{
    ElemType data;
    struct StackNode *next;
} StackNode, *LinkedStack;

Status Init_LS(LinkedStack *S);
Status Push_LS(LinkedStack *S, ElemType e);
Status Pop_LS(LinkedStack *S, ElemType *e);
ElemType GetTop_LS(LinkedStack *S);
Status IsEmpty_LS(LinkedStack *S);

#endif //_LINKEDSTACK_H
